import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class C_1507 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        List<String> list = new ArrayList<>();
        int a = (int) Math.pow(10,2);
        boolean flag = false;
        while (sc.hasNextLine()){
            String str = sc.nextLine();

            if (flag&&str.contains("*/")){
                list.add("");
                flag = false;
                continue;
            }
            if (flag)
                continue;
            if (str.contains("/*")){
                flag = true;
                continue;
            }
            if (str.contains("//")){
                for (int i = 0; i < str.length()-1; i++) {
                    if (str.charAt(i)=='/'&&str.charAt(i+1)=='/'){
                        str = str.substring(0,i);
                    }
                }
            }
            list.add(str);
        }
        for (String s : list) {
            System.out.println(s);
        }
    }
}
